package view;

import java.awt.Color;
import java.awt.Graphics;

import model.AntOdor;

public class AntOdorView implements Paintable {
	
	private AntOdor antodor;
	
	AntOdorView(AntOdor ao){
		antodor=ao;
	}
	
	@Override
	public void paint(Graphics g) {
		int loc_x=(int)antodor.get_x();
		int loc_y=(int)antodor.get_y();
		int range=(int)antodor.getRange();
		//ket szurke koncentrikus kort rajzol ki, a kisebbet kitolti
		 g.setColor(Color.gray);
		 //g.fillOval(loc_x-5, loc_y-5, 10, 10);
		 g.drawOval(loc_x-range, loc_y-range, range*2, range*2);
	}

	@Override
	public boolean alive() {
		return antodor.getisAlive();
	}

}
